package com.zzw.filters.httpfilters;

import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.core.Ordered;
import org.springframework.web.filter.OncePerRequestFilter;

import java.io.IOException;

/**
 * @author Administrator
 */
public class DefaultHttpFilter extends OncePerRequestFilter implements Ordered {
    @Override
    public int getOrder() {
        return 0;
    }

    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
        System.out.println("--------------defaultHttpFilter---------------");
        //String requestHeaderKey = request.getHeader("requestHeaderKey");
        filterChain.doFilter(request, response);
    }
}
